package at.sphinx.testwsmain;

import java.net.MalformedURLException;
import java.net.URL;

import javax.xml.namespace.QName;

import at.sphinx.testws.SimpleWS;
import at.sphinx.testws.SimpleWSService;

public class TestItMain {

	/**
	 * @param args
	 * @throws MalformedURLException 
	 */
	public static void main(String[] args) throws MalformedURLException {

		// SimpleWSService srv = new SimpleWSService();

		SimpleWSService srv = new SimpleWSService(new URL("http://NB-54:8888/simpleWS/SimpleWSService"), new QName("http://testws.sphinx.at/", "SimpleWSService"));
		
		SimpleWS simpleWSPort = srv.getSimpleWSPort();
		
		String echo = simpleWSPort.echo("myInput " );
		
		System.out.println("echo result: " + echo );
		
	}

}
